package com.mdinfo.system.bean;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by Administrator on 2017/11/22.
 * 用户实体类
 */
@Data
@TableName("sys_member")
public class SysMember extends Model<SysMember>{
    private Integer id;
    private Integer deptId;         //部门编号
    private String username;        //用户名(用于登录)
    private String password;        //密码
    private String salt;            //加密盐值
    private Integer empId;          //人员编号
    private Integer usable;         //是否可用
    private Date createTime;        //创建时间
    private Date lastLoginTime;    //最后登录时间

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
